package cn.jslancer.webx.router;

import io.netty.handler.codec.http.HttpMethod;

import java.util.List;

/**
 * @author jslancer
 * @date 2018/7/24 21:59
 */
public interface Router {

    void accept(RoutingContext context);

    List<Route> routes();

    Route route();

    Route route(HttpMethod method, String path);

    Route route(String path);


    Route get();

    Route get(String path);

    Route post();

    Route post(String path);

    Route head();

    Route head(String path);

    Route options();

    Route options(String path);

    Route put();

    Route put(String path);

    Route delete();

    Route delete(String path);

    Route patch();

    Route patch(String path);

    Route trace();

    Route trace(String path);

    Route connect();

    Route connect(String path);

}
